1. Home
  2. Docker
  3. Docker Commands
  4. Docker – ps

Docker – ps

Docker ps command

Use ps command to list the docker containers on your local system.

Syntax

docker ps [OPTIONS]

Example

To list all running container use the following command.

$ docker ps

docker ps command

Docker ps Options

#1. List All (-a, –all)

Use this switch to show all containers created on local system, either they are in any state.

$ docker ps -a
#2. Show ID Only (-q, –quiet)

This option will only display the numeric id only of the container.

$ docker ps -q
#3. Show Size (-s, –size)

This option will also display the size on disk of the listed containers.

$ docker ps -s
Tags , ,